<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import store from '@/store'
onLaunch(() => {
  console.log('App Launch')

  const system = uni.getSystemInfoSync()
  console.log(system)
  store.commit('setSystem', system.system.indexOf('iOS') > -1 ? 'ios' : 'android')

  const windowInfo = uni.getWindowInfo()
  console.log(windowInfo)
  store.commit('setWindowInfo', windowInfo)
})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
})
</script>
<style></style>
